package patrol.mobile.com.mobilepatrol.activity.security.emergency;

import android.content.Intent;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.listener.OnRecyclerViewItemClickListener;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import okhttp3.Call;
import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.activity.CommonListActivity;
import patrol.mobile.com.mobilepatrol.activity.security.ConsTitles;
import patrol.mobile.com.mobilepatrol.activity.security.adapter.EmergencyCheck1ListAdapter;
import patrol.mobile.com.mobilepatrol.activity.security.adapter.EmergencyCheckInfoListAdapter;
import patrol.mobile.com.mobilepatrol.api.Urls;
import patrol.mobile.com.mobilepatrol.bean.CheckEntityBean;
import patrol.mobile.com.mobilepatrol.bean.CheckInfoBean;
import patrol.mobile.com.mobilepatrol.bean.CheckListBean;
import patrol.mobile.com.mobilepatrol.bean.DictListBean;
import patrol.mobile.com.mobilepatrol.bean.OrgListBean;
import patrol.mobile.com.mobilepatrol.manager.UserManager;
import patrol.mobile.com.mobilepatrol.utils.GsonUtil;
import patrol.mobile.com.mobilepatrol.utils.net.HttpCallBack;
import patrol.mobile.com.mobilepatrol.utils.net.HttpSender;
import patrol.mobile.com.mobilepatrol.widget.MySpinner;

/**
 * Created by K on 2018/9/14.
 */
public class EmergencyCheckInfoActivity extends CommonListActivity {
    private List<CheckEntityBean.CheckDetailListBean> checkDetailListBeanList = new ArrayList<>();

    @Override
    public void initView() {
        super.initView();

    }

    @Override
    public void initData() {
        super.initData();

    }

    @Override
    public void initTitle() {
        super.initTitle();

    }

    @Override
    protected BaseQuickAdapter initAdapter() {
        return new EmergencyCheckInfoListAdapter(this);
    }

    @Override
    protected String initTitleName() {
        return ConsTitles.EMERGENCY_CHECK_3;
    }

    @Override
    public void configAdapter() {
        super.configAdapter();
    }

    @Override
    public void setListener() {
        super.setListener();

        Intent intent = getIntent();
        if (intent != null) {
            checkDetailListBeanList = (List<CheckEntityBean.CheckDetailListBean>) intent.getSerializableExtra("details");
            mAdapter.updateItems(checkDetailListBeanList);
        }

    }
}
